Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

148
Visualizações
return to the same script event by click "back" button in the browser

I have HTML form (buttons, inputs, etc). Each component as its own event that trigger specific script. I want the browser to remember which action happened when the user press the "back" button. (Example: If the user presses the 'blue button', then he can return to the same place when he clicks "back" in the browser).

I thought of doing this by using local storage in every event that triggered. Then at the beginning of the code to check which local storage is exist and trigger the event again.

But it seems ineffective to me. Anyone have a better idea?

Thanks.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda